import http from '@/utils/http'
//
/**
 * @params request 请求地址
 * @param '/testIp' 代表vue-cli中config, index.js中配置代理
 */
let request = ''

// post请求add
export function addAgent(params){
  return http.post(`${request}/yyymobile/sys/api/v1/agent/addAgent`, params)
}



export function getAgentList(params){
  return http.post(`${request}/yyymobile/sys/api/v1/agent/getAgentList`, params)
}


export function getAgentInfo(params){
  return http.get(`${request}/yyymobile/sys/api/v1/agent/getAgentInfo`, params)
}


export function updateAgentInfo(params){
  return http.put(`${request}/yyymobile/sys/api/v1/agent/updateAgentInfo`, params)
}

export function addAgentAccountInfo(params){
  return http.post(`${request}/yyymobile/sys/api/v1/agent/addAgentAccountInfo`, params)
}


export function getAgentAccountInfo(params){
  return http.get(`${request}/yyymobile/sys/api/v1/agent/getAgentAccountInfo`, params)
}


export function updateAgentAccountInfo(params){
  return http.put(`${request}/yyymobile/sys/api/v1/agent/updateAgentAccountInfo`, params)
}

export function deleteAgentAccount(params){
  return http.delete(`${request}/yyymobile/sys/api/v1/agent/deleteAgentAccount`, params)
}

